<?php 

class UserControl extends CommonControl
{
    public function index()
    {
        $data = M('user')->all();
        $this->assign('user',$data);
        $this->display();
    }

    public function del()
    {
        $uid = $_GET['uid'];
        M('user')->where('uid='.$uid)->del();
        $this->success('删除成功','index');
    }










}











 ?>